// 存放前端路由

// 超级管理员身份
const supertubeRouter = [
  // 首页
  {
    path: "/admin",
    name: "首页",
    iconfont: "icon-shouye",
  },
  // 公益作用
  {
    path: "/admin/review",
    name: "公益作用",
    iconfont: "icon-mudeyuzuoyong",
  },
  // 新闻资讯
  {
    path: "/admin/news",
    name: "新闻资讯",
    iconfont: "icon-xinwenzixun",
  },
  // 预约记录
  {
    path: "/admin/appointment",
    name: "预约记录",
    iconfont: "icon-jilu",
  },
  // 公益事项
  {
    path: "/admin/matters",
    name: "公益事项",
    iconfont: "icon-daibanshixiang",
  },
  // 公益记录
  {
    path: "/admin/record",
    name: "公益记录",
    iconfont: "icon-lianxi2hebing_jilu",
  },
  // 活动历程
  {
    path: "course",
    name: "活动历程",
    iconfont: "icon-he_67zuzhifazhanlicheng",
  },
  // 管理员
  {
    path: "admintor",
    name: "管理员",
    iconfont: "icon-nvshangjia",
    children: [
      {
        path: "/admin/admintor/add",
        name: "添加管理员",
      },
      {
        path: "/admin/admintor/manage",
        name: "管理员管理",
      },
    ],
  },
  // 日志
  {
    path: "/admin/logs",
    name: "日志",
    iconfont: "icon-rizhi",
    children: [
      {
        path: "/admin/logs/login",
        name: "登录日志",
      },
      {
        path: "/admin/logs/operation",
        name: "操作日志",
      },
      {
        path: "/admin/logs/error",
        name: "错误日志",
      },
    ],
  },
]

// 管理员身份

const admintorRouter = [
  // 首页
  {
    path: "/admin",
    name: "首页",
    iconfont: "icon-shouye",
  },
  // 公益作用
  {
    path: "/admin/review",
    name: "公益作用",
    iconfont: "icon-mudeyuzuoyong",
  },
  // 新闻资讯
  {
    path: "/admin/news",
    name: "新闻资讯",
    iconfont: "icon-xinwenzixun",
  },
  // 预约记录
  {
    path: "/admin/appointment",
    name: "预约记录",
    iconfont: "icon-jilu",
  },
  // 公益事项
  {
    path: "/admin/matters",
    name: "公益事项",
    iconfont: "icon-daibanshixiang",
  },
  // 公益记录
  {
    path: "/admin/record",
    name: "公益记录",
    iconfont: "icon-lianxi2hebing_jilu",
  },
  // 活动历程
  {
    path: "course",
    name: "活动历程",
    iconfont: "icon-he_67zuzhifazhanlicheng",
  },
]

module.exports = {
  supertubeRouter,
  admintorRouter,
}
